#pragma once

/*
*	Moving Average Cross-Over System
*/

class MovAvgCrossOver : public TradeSystem
{
	private:
		vector<double> slowMA;
		vector<double> fastMA;

	public:
		MovAvgCrossOver(const vector<double>& _slowMA, const vector<double>& _fastMA, double stopLoss, double stopGain);
		~MovAvgCrossOver(void);

		bool Buy(Quotation stockQuot, int i);
		int Sell(Quotation stockQuot, int i);
		int Cover(Quotation stockQuot, int i);
		bool Short(Quotation stockQuot, int i);
};

